package com.xy.shop.web.service.impl;

import com.xy.shop.web.dao.OrderWriteTemplateMapper;
import com.xy.shop.web.dto.OrderWriteTemplate;
import com.xy.shop.web.service.OrderWriteTemplateService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
*@Description: 订单填写模板
*@Param:  null
*@Author: zyy
*@date: 2020/6/30
*@Time: 10:54
*/
@Service
public class OrderWriteTemplateServiceImpl implements OrderWriteTemplateService {

    @Resource
    private OrderWriteTemplateMapper orderWriteTemplateMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return orderWriteTemplateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OrderWriteTemplate record) {
        return orderWriteTemplateMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderWriteTemplate record) {
        return orderWriteTemplateMapper.insertSelective(record);
    }

    @Override
    public OrderWriteTemplate selectByPrimaryKey(Integer id) {
        return orderWriteTemplateMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderWriteTemplate record) {
        return orderWriteTemplateMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OrderWriteTemplate record) {
        return orderWriteTemplateMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Map<String, Object>> queryListByPage(Map<String, Object> parameter) {
        return orderWriteTemplateMapper.queryListByPage(parameter);
    }
}
